<?php get_header(); ?>

    <div class="container">
        <div class="row">
            <div class="col-8">

                <?php if (have_posts()) : ?>

                    <?php if (is_home() && !is_front_page()) : ?>
                        <header>
                            <h1 class="page-title screen-reader-text"><?php single_post_title(); ?></h1>
                        </header>
                    <?php endif; ?>

                    <?php
                    // Start the loop.
                    while (have_posts()) :
                        the_post();

                        ?>

                        <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>


                            <header class="entry-header">
                                <?php
                                if (is_single()) :
                                    the_title('<h1 class="entry-title">', '</h1>');
                                else :
                                    the_title(sprintf('<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url(get_permalink())), '</a></h2>');
                                endif;
                                ?>
                            </header><!-- .entry-header -->


                            <footer class="entry-footer">

                            </footer><!-- .entry-footer -->

                        </article><!-- #post-## -->

                    <?php

                        // End the loop.
                    endwhile;

                // If no content, include the "No posts found" template.
                else :
                    get_template_part('content', 'none');
                endif;
                ?>

            </div>
            <div class="col-4">
                <?php get_sidebar(); ?>
            </div>
        </div>
    </div>

<?php get_footer(); ?>